import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import { ElMessage } from "element-plus";
// 引入封装的axios
import axios from "./http";
const app = createApp(App);

// 全局挂载 axios
app.config.globalProperties.$http = axios;
app.config.globalProperties.$message = ElMessage;
app.use(ElementPlus);
app.use(store);
app.use(router);
app.mount("#app");
